package com.lry.controller;

import com.lry.bean.User;
import com.lry.service.impl.UserServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 *
 * @author 李瑞益
 * @date 2019/8/20
 */
@RestController
public class UserAdminController {

    @Autowired
    private UserServiceImpl userServiceImpl;

    @GetMapping("/admin/register")
    public String registUser(User user){
        int i = userServiceImpl.addUser(user);
        return user.toString();
    }

//    public String login(User user) {
//        userS
//    }
}
